isVisible

open fun isVisible(): Boolean(source)

If overridesItemVisibility returns true, the return value of this method will help determine the visibility of the MenuItem this ActionProvider is bound to.

If the MenuItem's visibility is explicitly set to false by the application, the MenuItem will not be shown, even if this method returns true.

Return

true if the MenuItem this ActionProvider is bound to is visible, false if it is invisible. The default implementation returns true.